<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/tabs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/ajaxException.js"></script>
<script language="JavaScript"  src="${ctx}/scripts/common/prototype.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common.js"></script>
<script type="text/javascript">
<%@ include file="/pages/com/ce/pms/system/occupation/baseSettings/baseSettings.js"%>
function reloadSendDocList(){
    baseSettingId= null;
	$('baseSettingList').src="${ctx}/system_occupationConfigAction.do?method=initSendDocList";
}
function reloadContractorList(){
    baseSettingId = null;
	$('baseSettingList').src="${ctx}/system_occupationConfigAction.do?method=initContractorConfigList";
}
function reloadDeclareTypeList(){
    baseSettingId= null;
	$('baseSettingList').src="${ctx}/system_occupationConfigAction.do?method=initDeclareTypeList";
}
function setBaseSettingId(id){
	baseSettingId=id;
}
var keyword = null;
/**
 * 显示面板
 * @param mothod 调用的方法
 * @param framId 面板的id
 * @param frameTitle 面板的标题
 * @param height 高度
 * @param width 宽度
 * @param isEdit 是否为编辑状态
 * @return
 */
function showPlane(mothod, framId, frameTitle, height, width, isEdit){
	var url = "${ctx }/system_occupationConfigAction.do?method=" + mothod;
	if(isEdit){
		if(keyword == null){
			Alert("请选择要编辑的数据！");
			return;
		}else{
			url = url + "&keyword=" + keyword;
		}
	}
	top.windowOpen(url, framId, frameTitle, height, width);
}

function selectItem(id){
	keyword = id;
}

var delMethod = null;
var iframName = null;
function itemDel(methods,ifram){
	delMethod = methods;
	iframName = ifram;
	if(keyword == null){
 	   	Alert('请选择数据！');
      return false;
 	  }
 	  else{
    	AskConfirm("${key.tipsByDeleteConfirm}","main","deleteItem");
 	  }
}

function deleteItem(){
	var url = '${ctx}/system_occupationConfigAction.do?method='+delMethod+'&keyword='+keyword;
	new Ajax.Request(url,{method: 'post' ,onSuccess : function(response){
		ajaxSubmitException(response.responseText);
		keyword = null;
		responseReload();
	}});
}

/**
 * 重新加载列表
 * @param mothod 调用的方法
 */
function reloadList(method){
	$('baseSettingList').src = '${ctx}/system_occupationConfigAction.do?method=' + method;
	keyword=null;
}

function responseReload(){
	$('baseSettingList').src = '${ctx}/system_occupationConfigAction.do?method=' + iframName;
}
</script>
</head>
<body style="overflow: auto;">
<div class="pageNav_bg">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td id="pageNav_leftimg"><img src="${ctx}/images/ico_custome_join.gif" width="46" height="47"/></td>
      <td id="navWord"><span class="page_title">入伙设置</span></td>
      <td class="pageNav_right"><a href="javascript:showFull_in();"><img id="full_image"  src="${ctx}/images/ico_fullscreen.gif" border="0"/></a></td>
    </tr>
  </table>
</div>
<!-- 发送资料 -->
<div id="sendDocRight" >
	 <table border="0" cellpadding="0" cellspacing="0" id="ico2" >
            <tr>
              <td class="toolbarico"><a href="#" onfocus="this.blur()" onclick="openSendDoc();" ><img src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom" alt="新增"/>&nbsp;</a></td>
              <td  class="toolbarico" ><a href="#" onFocus="this.blur()" onClick="editSendDoc();"><img src="${ctx}/images/ico_amend.gif" alt="修改" width="16" height="16" border="0" align="absbottom" /></a></td>
              <td class="toolbarico"><a href="#" onClick="showSendDoc();" onFocus="this.blur()"><img src="${ctx}/images/ico_delete.gif" alt="删除" width="16" height="16" border="0" align="absbottom" /></a></td>
              <td  class="toolbarico">&nbsp;</td>
             </tr>
    </table>
</div>
<!-- 申报项目 -->
<div id="declareTypeRight" >
	<table border="0" cellpadding="0" cellspacing="0" id="ico3" >
            <tr>
                <td class="toolbarico"><a href="#"  onclick="openDeclareType();"onfocus="this.blur()"><img src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom" alt="新增"/>&nbsp;</a></td>
                <td class="toolbarico" ><a href="#" onFocus="this.blur()" onClick="editDeclareType();"help:no;status:no;scroll:no;center');"><img src="${ctx}/images/ico_amend.gif" alt="修改" width="16" height="16" border="0" align="absbottom" /></a></td>
                <td class="toolbarico"><a href="#" onClick="showDeclareType();" onFocus="this.blur()"><img src="${ctx}/images/ico_delete.gif" alt="删除" width="16" height="16" border="0" align="absbottom" /></a></td>
                <td  class="toolbarico">&nbsp;</td>
              </tr>
          </table>
</div>
<!-- 承包商 -->
<div id="contractorRight"  >
	 <table border="0" cellpadding="0" cellspacing="0" id="ico4" >
            <tr>
                <td class="toolbarico"><a href="#"  onclick="openContractor();"onfocus="this.blur()"><img src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom" alt="新增"/>&nbsp;</a></td>
                <td  class="toolbarico" ><a href="#" onFocus="this.blur()" onClick="editContractor();"><img src="${ctx}/images/ico_amend.gif" alt="修改" width="16" height="16" border="0" align="absbottom" /></a></td>
                <td class="toolbarico"><a href="#" onClick="showContractor();" onFocus="this.blur()"><img src="${ctx}/images/ico_delete.gif" alt="删除" width="16" height="16" border="0" align="absbottom" /></a></td>
                <td  class="toolbarico">&nbsp;</td>
             </tr>
      </table>
</div>
<!-- 缴费设置 -->
<div id="chargeRight">
	<table border="0" cellpadding="0" cellspacing="0" id="ico3" >
            <tr>
                <td class="toolbarico"><a href="#"  onclick="javascript:showPlane('chargeEditPage', 'chargeEditPage', '缴费设置', 400, 550, false);"onfocus="this.blur()"><img src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom" alt="新增"/>&nbsp;</a></td>
                <td class="toolbarico" ><a href="#" onFocus="this.blur()" onClick="javascript:showPlane('chargeEditPage', 'chargeEditPage', '缴费设置', 400, 550, true);"help:no;status:no;scroll:no;center');"><img src="${ctx}/images/ico_amend.gif" alt="修改" width="16" height="16" border="0" align="absbottom" /></a></td>
                <td class="toolbarico"><a href="#" onClick="javascript:itemDel('deleteCharge','chargeListPage');" onFocus="this.blur()"><img src="${ctx}/images/ico_delete.gif" alt="删除" width="16" height="16" border="0" align="absbottom" /></a></td>
                <td  class="toolbarico">&nbsp;</td>
              </tr>
          </table>
</div>
<!-- 物品移交 -->
<div id="articleTransferRight">
	<table border="0" cellpadding="0" cellspacing="0" id="ico3" >
            <tr>
                <td class="toolbarico"><a href="#"  onclick="javascript:showPlane('articleTransferEditPage', 'articleTransferEdit', '物品移交登记', 260, 550, false);" onfocus="this.blur()"><img src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom" alt="新增"/>&nbsp;</a></td>
                <td class="toolbarico" ><a href="#" onFocus="this.blur()" onClick="javascript:showPlane('articleTransferEditPage', 'articleTransferEdit', '物品移交登记', 260, 550, true);"><img src="${ctx}/images/ico_amend.gif" alt="修改" width="16" height="16" border="0" align="absbottom" /></a></td>
                <td class="toolbarico"><a href="#" onClick="javascript:itemDel('deleteArticleTransfer','articleTransferListPage');" onFocus="this.blur()"><img src="${ctx}/images/ico_delete.gif" alt="删除" width="16" height="16" border="0" align="absbottom" /></a></td>
                <td  class="toolbarico">&nbsp;</td>
              </tr>
          </table>
</div>
<!-- 入伙资料缺失 -->
<div id="missingInformation">
	<table border="0" cellpadding="0" cellspacing="0" id="ico3">
            <tr>
                <td class="toolbarico"><a href="#"  onclick="javascript:showPlane('missingInformationEditPage', 'missingInformationEdit', '入伙发放资料登记', 260, 550, false);"onfocus="this.blur()"><img src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom" alt="新增"/>&nbsp;</a></td>
                <td class="toolbarico" ><a href="#" onFocus="this.blur()" onClick="javascript:showPlane('missingInformationEditPage', 'missingInformationEdit', '入伙发放资料登记', 260, 550, true);"><img src="${ctx}/images/ico_amend.gif" alt="修改" width="16" height="16" border="0" align="absbottom" /></a></td>
                <td class="toolbarico"><a href="#" onClick="javascript:itemDel('deleteMissingInformation','missingInformationListPage');" onFocus="this.blur()"><img src="${ctx}/images/ico_delete.gif" alt="删除" width="16" height="16" border="0" align="absbottom" /></a></td>
                <td  class="toolbarico">&nbsp;</td>
              </tr>
          </table>
</div>
<pms:tabPanel panelId="baseSettings"  hasTop="true" iframeId="baseSettingList"  >
			<pms:tab tabId="1"
				baseUrl="${ctx}/system_occupationConfigAction.do?method=missingInformationListPage"
				caption="入伙资料缺失登记"
				rightDiv="missingInformation"
				afterFunction="selectItem(null)">
			</pms:tab>
			<pms:tab tabId="sendDocList"
				baseUrl="${ctx}/system_occupationConfigAction.do?method=initSendDocList"
				afterFunction="setBaseSettingId(null);"
				caption="发放资料"
				rightDiv="sendDocRight">
			</pms:tab>
			<pms:tab tabId="declareTypeList"
				baseUrl="${ctx}/system_occupationConfigAction.do?method=initDeclareTypeList"
				afterFunction="setBaseSettingId(null);"
				caption="申报项目类型"
				rightDiv="declareTypeRight">
			</pms:tab>
			<pms:tab tabId="contractorList"
				baseUrl="${ctx}/system_occupationConfigAction.do?method=initContractorConfigList"
				caption="承包商"
				rightDiv="contractorRight"
				afterFunction="setBaseSettingId(null);">
			</pms:tab>
			<pms:tab tabId="5"
				baseUrl="${ctx}/system_occupationConfigAction.do?method=articleTransferListPage"
				afterFunction="selectItem(null)"
				caption="物品移交"
				rightDiv="articleTransferRight">
			</pms:tab>
			<pms:tab tabId="6"
				baseUrl="${ctx}/system_occupationConfigAction.do?method=chargeListPage"
				afterFunction="selectItem(null)"
				caption="缴费设置"
				rightDiv="chargeRight">
			</pms:tab>
</pms:tabPanel>
</body>
</html>
